﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Lian5.Models;

namespace Lian5.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View(new List<Student> {
                new Student(){
                    Id=1,
                    Name="仗义",
                    Age=15
                },
                new Student(){
                    Id=2,
                    Name="仗义2",
                    Age=16
                },
                new Student(){
                    Id=3,
                    Name="仗义3",
                    Age=17
                },
                new Student(){
                    Id=4,
                    Name="仗义4",
                    Age=18
                }
            });
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}